<%@ page language="java" import="java.util.*, com.infolab.aims.domain.Location, com.infolab.aims.common.bean.SearchResult" %>
<%@ include file="/WEB-INF/views/taglib.jsp" %>
<h3>Location Configuration</h3>	
	<form:form id="form" method="post" modelAttribute="locationBean" cssClass="simpleForm">
		
	 	<div class="clear" style="height:1px">&nbsp;</div>
		<jsp:include page="/WEB-INF/views/message.jsp"></jsp:include>
		<fieldset> 
			<legend>Location Configuration</legend>
	  		<p>
			<aims:column cssClass="clearfix" cssErrorClass="error" path="repairTransferLocation" >
			<label>
	  			Repair Transfer Location
	 		</label>
	 		<form:checkboxes path="repairTransferLocation" items="${locationBean.locations}" itemValue="locationCode" itemLabel="locationName" />
	 		</aims:column>
	 		
	 		<aims:column cssClass="clearfix" cssErrorClass="error" path="workOrderActiveLocation" >
			<label>
	  			Work Order Active Location
	 		</label>
	 		<form:select path="workOrderActiveLocation" items="${locationBean.locations}" itemValue="locationCode" itemLabel="locationName" />
	 		</aims:column>
	 		
	 		<aims:column cssClass="clearfix" cssErrorClass="error" path="componentIssueMainLocation" >
			<label>
	  			Component Issue Main Location
	 		</label>
	 		<form:select path="componentIssueMainLocation" items="${locationBean.locations}" itemValue="locationCode" itemLabel="locationName" />
	 		</aims:column>
	 		
	 		<aims:column cssClass="clearfix" cssErrorClass="error" path="workOrderFaultLocation" >
			<label>
	  			Work Order Fault Location
	 		</label>
	 		<form:select path="workOrderFaultLocation" items="${locationBean.locations}" itemValue="locationCode" itemLabel="locationName" />
	 		</aims:column>
	 		
	 		<aims:column cssClass="clearfix" cssErrorClass="error" path="workOrderInVehicleLocation" >
			<label>
	  			Work Order InVehicle Location
	 		</label>
	 		<form:select path="workOrderInVehicleLocation" items="${locationBean.locations}" itemValue="locationCode" itemLabel="locationName" />
	 		</aims:column>
	 		
		</fieldset>
		
     	<div class="action">
			<button type="submit"  class="button positive">Update</button>
 			<a href="<c:url value="/location/search" />" class="button">Back</a>
	 	</div>	
	</form:form>

	<script type="text/javascript">
		$(document).ready(function() {
			
		});
	</script>